-- GENERATED SPELL FOR [Rockjaw Ambusher] --


function spell0_1116(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(7159,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1116', 565, 1)
end

function Sorts_1116(pUnit, Event)
local choix_sorts_1116 = math.random(0, 0)
if choix_sorts_1116 == 0 then
pUnit:RegisterEvent('spell0_1116', 1, 1)
end
end

function mob1116_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1116', math.random(1500, 3000), 1)
end

function mob1116_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1116_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1116_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1116, 1, 'mob1116_Action')
RegisterUnitEvent(1116, 2, 'mob1116_Leave')
RegisterUnitEvent(1116, 3, 'mob1116_Kill')
RegisterUnitEvent(1116, 4, 'mob1116_Die')
